﻿using ELTE.SEM.Data.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ELTE.SEM.Data.Repository
{
    public interface IFolderRepository
    {
        SemFolderViewModel GetFolders();

        List<SemFolderAccessViewModel> GetFolderAccesses(int userId);

        bool IsAccessibleFor(string userName, int folderId);

        bool AddFolders(SemFolderViewModel rootFolderViewModel);

        bool SetFolderAccess(int folderId, int userId, bool HasAccess);

        SemFolderViewModel GetRootFolderViewModel(List<SemDataViewModel> foldersData, string rootFolderPath);
    }
}
